/***************************************************************************
 *            iconv_test.c
 *
 *  Tue May 22 17:03:02 2007
 *  Copyright  2007  kf701
 *  Email <kf701.ye AT gmail.com>
 ****************************************************************************/

#include "factory.h"

int main()
{
	char *str = "我好的";
	char *out = iconv_string (str, "utf-8", "gbk" );
	/* out need free yourself */
	
	FILE *fp = fopen ("xx.txt" ,"w" );
	fwrite( out, strlen(out), 1,  fp );
	fclose( fp );
	return 0;
}
